package com.imooc.common.plan.service;

import com.imooc.common.plan.enums.PlanTypeCode;
import lombok.extern.slf4j.Slf4j;
import org.nutz.lang.util.NutMap;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PlanBService extends AbstractPlanService{
    /**
     * 计划类型
     */
    @Override
    public PlanTypeCode getPlanType() {
        return PlanTypeCode.PLAN_B;
    }

    @Override
    public NutMap planCreate() {
        NutMap result = new NutMap();
        String msg = "PlanBService.planCreate is running...";
        log.error(msg);
        result.put("code",0);
        result.put("msg",msg);
        return result;
    }

    @Override
    public NutMap planExecute() {
        NutMap result = new NutMap();
        String msg = "PlanBService.planExecute is running...";
        log.error(msg);
        result.put("code",0);
        result.put("msg",msg);
        return result;
    }

    @Override
    public NutMap planFinished() {
        NutMap result = new NutMap();
        String msg = "PlanBService.planFinished is running...";
        log.error(msg);
        result.put("code",0);
        result.put("msg",msg);
        return result;
    }
}
